package plp;

import java.io.IOException;
import java.io.OutputStream;

import javax.swing.JTextArea;

public class JTextAreaOutputStream extends OutputStream {

	private JTextArea jTextArea;
	
	public JTextAreaOutputStream(JTextArea textArea) {
		super();
		jTextArea = textArea;
	}

	@Override
	public void write(int b) throws IOException {
		jTextArea.append(""+((char) b));
	}

}
